<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<title>手机调摄像头</title>
	</head>
	<input type="file" id="browseFile"><=点击我可以调用摄像头
	<script>
    var video_element = document.getElementById('video');
    if (navigator.getUserMedia) { // opera should use opera.getUserMedia now, chrome use webkitGetUserMedia
             navigator.getUserMedia('video',success, error);
    }
    function success(stream) {
             video_element.src =stream;
    }
	</script>
</html>
